package com.xqboss.apps.dto.hama;

import com.xqboss.apps.enums.hama.HamaConfigNumberConfigTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 蛤蟆卡、助力人数 对应空投速度
 * </p>
 *
 * @author admin
 * @since 2024-02-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "HamaConfigNumberTeamVo", description = "蛤蟆卡、助力人数 对应空投速度")
@Builder
public class HamaConfigNumberTeamDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "新人助力ID")
    private Long id;

    @ApiModelProperty(value = "新人助力天数")
    @NotNull(message = "新人助力天数不能为空~")
    private Integer number;

    @ApiModelProperty(value = "新人助力速率")
    @NotNull(message = "新人助力速率不能为空~")
    @Min(0)
    private BigDecimal basicSpeed;

    @ApiModelProperty(value = "注册天数（X天内注册加入才能助力）")
    @NotNull(message = "注册天数不能为空~")
    @Min(0)
    private Integer day;

    @ApiModelProperty(value = "间推助力系数（输入0~1的系数）")
    @NotNull(message = "间推助力系数不能为空~")
    @Min(0)
    @Max(1)
    private BigDecimal factor;

    @ApiModelProperty(value = "配置类型（1-投放装备 2-全力助力 3-新人助力）")
    private HamaConfigNumberConfigTypeEnum configType;

    @ApiModelProperty(value = "老人助力-基础速率列表")
    @NotNull(message = "老人助力-基础速率列表不能为空~")
    private List<HamaConfigNumberDto> oldConfigNumber;

}
